<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.fit.user.entity.*"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="com.fit.user.dao.*"  %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>物证保管</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
		  	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
<script type="text/javascript">
function gofun(_link) {
    window.top.frames('mainFrame').location.href=_link;

 }
 function check_add()
  {
 
 if(document.getElementById("wpmcid").value=="")
  {
  alert("请输入物品名称!");
  return false;
  }
  
  else
  { 
    if(confirm("确认要提交吗?"))
			{
				gettime('endtime');
				  document.getElementById("divrsjc").style.display ="none";
    document.getElementById("btkaishi").disabled="false";
				return true;
			}
			else{
				return false;
			}
   
   }
  
    }
    
    
    function gettime(id)
    {

 if (!document.layers&&!document.all)
 return

 var Timer=new Date()
  var year=Timer.getFullYear()
 var month= Timer.getMonth()+1;
var  date = Timer.getDate();
  
   var hours=Timer.getHours()
 var minutes=Timer.getMinutes()
 var seconds=Timer.getSeconds()
 

 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
    
   
   // alert(year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds);
    document.getElementById(id).value=year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds;
    document.getElementById("divrsjc").style.display ="block";
    document.getElementById("btkaishi").disabled="true";
    }
</script>
<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
 
	
<script type="text/javascript">
	function report(){
	window.alert("OK");
	var str="<%=basePath %>/goodMsg.do?oper=report"
	window.open(str);
	}
</script>
  </head>
    <%
  String policeID = (String)session.getAttribute("policeID");
  PoliceMsgDAO policeMsgDAO = new PoliceMsgDAO();
  String purview = policeMsgDAO.getPoliceMsg(policeID).getPurview();
  String policeName = policeMsgDAO.getPoliceMsg(policeID).getPoliceName();
    String caseID = (String)session.getAttribute("caseID");
  
   %>
  
  <body>
 
   
    
    
        
    
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="table_boder" cellSpacing="0" cellPadding="0" width="100%" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
        <td height="31" width="85">
          <a style="cursor:hand;" onclick="gofun('/police/goodsmsg.jsp')"> 
               <div class="mytitlebt">临时物品
</div> </a>
        </td>
            <td height="31" width="85">
               <a style="cursor:hand;" onclick="gofun('/police/police/material_evidencesmsg.jsp')"> 
       <div class="titlebt">&nbsp;&nbsp;物&nbsp;&nbsp;&nbsp;证</div>
       </a>
        </td>


         <td height="20" align="right">&nbsp;</td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="550" border="0" cellpadding="0" cellspacing="0" id="mybgcolor">
			<tr><td align="center"><h1>物证信息登记</h1></td></tr>
	<tr><td valign="top" align="center">
     <form action="<%=basePath %>/goodMsg.do?oper=submit_evidence" method="post"  onsubmit="return check_add()">
    <table> <tr><td><input type="button" id="btkaishi" value="开始" onclick="gettime('begintime')"></td></tr></table>
 <div id="divrsjc" style="display:none">
 
      <table width="70%" border="0"  id=Table5 class="table_boder">
      <tr>
      
      <td align="right" >物品名称：<input type="hidden" name="goodMsgEntity.caseID" value="<%=session.getAttribute("caseID") %>"></td><td><input type="text" id="wpmcid" name="goodMsgEntity.goodName" ></td>
      <td  align="right" >物品数量：</td><td><input type="text" name="goodMsgEntity.goodNum" ></td>
      </tr>
        <tr>
      <td  align="right"">寄存时间：</td><td><input type="text" name="goodMsgEntity.timePut" ></td>
     <%-- <td  align="right"">返还时间：</td><td><input type="text" name="goodMsgEntity.timeGet" ></td> --%>
      </tr>
        <tr>
      <td  align="right"">签收民警：</td><td colspan="3"><input type="text" name="goodMsgEntity.signInMan" ></td>
        <%--  <td align="right">物品处置民警：</td><td colspan="3"><input type="text" name="goodMsgEntity.handGoodsMen" ></td>
       --%>
      </tr>
      <tr>
      <td  align="right"">物品特征：</td><td colspan="3" ><input type="text" name="goodMsgEntity.goodCharacter" ></td>
      
      </tr>
       <tr>
      <td  align="right"">备注：</td><td colspan="3"><input type="text" name="goodMsgEntity.remarks" ></td>
      
      </tr>
             <tr>
      <td  align="right" >开始时间：</td><td colspan="3"><input type="text" id="begintime" name="goodMsgEntity.beginTime" ></td>
      
      </tr>
            <tr>
      <td  align="right" >结束时间：</td><td colspan="3"><input type="text" id="endtime" name="goodMsgEntity.endTime" ></td>
      
      </tr>
        <tr>
      <td colspan="4" align="center"><input type="submit" value="提交"> 
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <!--    <input type="button" value="导出" onclick="report();"> -->    
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="button" name="cancel" value="重置">
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       <!-- -
      <a href="<%=basePath %>/goodMsg.do?oper=query">查询</a> </td>
      -->
      </tr>
      </table>
      </div>
    </form>    
    


		</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
